﻿using QLNH_BUS_WS.QLNH_DAL_WS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace QLNH_BUS_WS
{
    public class CatalogBUS
    {
        public CatalogDTO[] GetAllCatalog()
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.GetAllCatalog();
        }

        public CatalogDetailDTO[] GetAllCatalogDetail()
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.GetAllCatalogDetail();
        }

        public bool AddCatalog(CatalogDTO catalogDTO)
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.AddCatalog(catalogDTO);
        }

        public bool EditCatalog(CatalogDetailDTO catalogDetail)
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.EditCatalog(catalogDetail);
        }

        public bool RemoveCatalog(string catalogID)
        {
            QLNH_DAL_WebServiceSoapClient ws = new QLNH_DAL_WebServiceSoapClient();
            return ws.RemoveCatalog(catalogID);
        }
    }
}